Class HCC.Interface.Setting.spec Extends %REST.Spec [ ProcedureBlock ]
{

Parameter HandleCorsRequest = 1;

XData OpenAPI [ MimeType = application/json ]
{
{
  "swagger":"2.0",
  "info":{
    "title":"Settings API",
    "version":"3.0"
  },
  "securityDefinitions":{
    "basicAuth":{
      "type":"basic"
    }
  },
  "security":[
    {
      "basicAuth":[
      ]
    }
  ],
  "basePath":"/hcc/setting",
  "schemes":[
    "https",
    "http"
  ],
  "paths":{
    "/SystemSetting":{
      "get":{
        "tags":[
          "系统设置"
        ],
        "operationId":"GetSystemSetting",
        "description":"获取系统设置参数",
        "parameters":[
        ],
        "responses":{
          "200":{
            "description":"获取系统设置成功",
            "schema":{
              "$ref":"#/definitions/SystemSetting"
            }
          }
        }
      }
    },
    "/StartSQLDocTask":{
      "get":{
        "tags":[
          "文档生成任务"
        ],
        "description":"开启共享文档生成任务",
        "operationId":"StartSQLDocTask",
        "produces":[
          "text/plain"
        ],
        "parameters":[
        ],
        "responses":{
          "200":{
            "description":"开启共享文档生成任务成功",
            "examples":{
              "text/plain":"1"
            }
          }
        }
      }
    },
    "/StopSQLDocTask":{
      "get":{
        "tags":[
          "文档生成任务"
        ],
        "description":"停止共享文档生成任务",
        "operationId":"StopSQLDocTask",
        "produces":[
          "text/plain"
        ],
        "parameters":[
        ],
        "responses":{
          "200":{
            "description":"共享文档任务停止成功",
            "examples":{
              "text/plain":"1"
            }
          }
        }
      }
    },
    "/SkipDEVal":{
      "get":{
        "tags":[
          "共享文档设置"
        ],
        "description":"跳过数据元约束检查",
        "operationId":"SkipDEValidation",
        "produces":[
          "text/plain"
        ],
        "parameters":[
        ],
        "responses":{
          "200":{
            "description":"跳过数据元约束检查设置成功",
            "examples":{
              "text/plain":"1"
            }
          }
        }
      }
    },
    "/EnforceDEVal":{
      "get":{
        "tags":[
          "共享文档设置"
        ],
        "operationId":"EnforceDEValidation",
        "description":"开启数据元约束检查",
        "produces":[
          "text/plain"
        ],
        "parameters":[
        ],
        "responses":{
          "200":{
            "description":"开启数据元约束检查成功",
            "examples":{
              "text/plain":"1"
            }
          }
        }
      }
    },
    "/SkipDECard":{
      "get":{
        "tags":[
          "共享文档设置"
        ],
        "operationId":"SkipDECardValid",
        "produces":[
          "text/plain"
        ],
        "description":"跳过数据元必要性约束检查",
        "parameters":[
        ],
        "responses":{
          "200":{
            "description":"跳过数据元必要性约束检查设置成功",
            "examples":{
              "text/plain":"1"
            }
          }
        }
      }
    },
    "/EnforceDECard":{
      "get":{
        "tags":[
          "共享文档设置"
        ],
        "operationId":"EnforceDECardValid",
        "description":"开启数据元必要性约束检查",
        "produces":[
          "text/plain"
        ],
        "parameters":[
        ],
        "responses":{
          "200":{
            "description":"开启数据元必要性约束检查成功",
            "examples":{
              "text/plain":"1"
            }
          }
        }
      }
    },
    "/SetXSLPath":{
      "put":{
        "tags":[
          "共享文档设置"
        ],
        "description":"设置xsl文件路径",
        "produces":[
          "text/plain"
        ],
        "operationId":"SetXSLPath",
        "parameters":[
          {
            "name":"path",
            "in":"body",
            "description":"xsl文件路径",
            "required":true,
            "schema":{
              "$ref":"#/definitions/XSLFilePath"
            }
          }
        ],
        "responses":{
          "200":{
            "description":"设置xsl文件路径成功",
            "examples":{
              "text/plain":"1"
            }
          }
        }
      }
    },
    "/SetDebugFilePath":{
      "put":{
        "tags":[
          "debug模式设置"
        ],
        "operationId":"SetDebugFilePath",
        "produces":[
          "text/plain"
        ],
        "description":"设置debug文件夹路径",
        "parameters":[
          {
            "name":"path",
            "in":"body",
            "description":"debug文件夹路径",
            "required":true,
            "schema":{
              "$ref":"#/definitions/DebugFilePath"
            }
          }
        ],
        "responses":{
          "200":{
            "description":"OK",
            "examples":{
              "text/plain":"1"
            }
          }
        }
      }
    },
    "/EnableDebugMode":{
      "get":{
        "tags":[
          "debug模式设置"
        ],
        "description":"开启debug模式",
        "operationId":"EnableDebugMode",
        "produces":[
          "text/plain"
        ],
        "parameters":[
        ],
        "responses":{
          "200":{
            "description":"开启debug模式成功",
            "examples":{
              "text/plain":"1"
            }
          }
        }
      }
    },
    "/DisableDebugMode":{
      "get":{
        "tags":[
          "debug模式设置"
        ],
        "operationId":"DisableDebugMode",
        "produces":[
          "text/plain"
        ],
        "description":"关闭debug模式",
        "parameters":[
        ],
        "responses":{
          "200":{
            "description":"关闭debug模式成功",
            "examples":{
              "text/plain":"1"
            }
          }
        }
      }
    },
    "/Anonymization":{
      "get":{
        "tags":[
          "匿名化设置"
        ],
        "description":"获取匿名化设置",
        "operationId":"GetAnonySetting",
        "parameters":[
        ],
        "responses":{
          "200":{
            "description":"获取匿名化设置成功",
            "schema":{
              "$ref":"#/definitions/Anonymazation"
            }
          }
        }
      },
      "put":{
        "tags":[
          "匿名化设置"
        ],
        "description":"更新匿名化设置",
        "operationId":"SetAnonySetting",
        "parameters":[
          {
            "name":"path",
            "in":"body",
            "description":"debug文件夹路径",
            "required":true,
            "schema":{
              "$ref":"#/definitions/Anonymazation"
            }
          }
        ],
        "responses":{
          "200":{
            "description":"更新匿名化设置成功",
            "schema":{
              "$ref":"#/definitions/AnonymazationSetRes"
            }
          }
        }
      }
    }
  },
  "definitions":{
    "SystemSetting":{
      "type":"object",
      "properties":{
        "跳过值集检查":{
          "type":"integer",
          "description":"系统设置id"
        },
        "跳过数据元必要性约束检查":{
          "type":"string",
          "description":"系统设置名称"
        },
        "跳过章节必要性检查":{
          "type":"string",
          "description":"系统设置值"
        },
        "HostFacility":{
          "type":"object",
          "properties":{
            "Id":{
              "type":"string",
              "description":"医疗机构id",
              "example":"H123456"
            },
            "Name":{
              "type":"string",
              "description":"医疗机构名称",
              "example":"系联总医院"
            }
          }
        },
        "XSLFilePath":{
          "type":"string",
          "description":"xsl文件路径",
          "example":"/DockerExternal/xsl"
        },
        "DocGenTask":{
          "type":"boolean",
          "description":"生成文档任务是否开启",
          "example":true
        },
        "Debug模式":{
          "type":"boolean",
          "description":"debug 模式是否开启",
          "example":true
        }
      }
    },
    "XSLFilePath":{
      "type":"object",
      "description":"xsl文件路径",
      "properties":{
        "Path":{
          "type":"string",
          "description":"xsl文件路径",
          "example":"/DockerExternal/xsl"
        }
      }
    },
    "DebugFilePath":{
      "type":"object",
      "description":"debug文件夹路径",
      "properties":{
        "Path":{
          "type":"string",
          "description":"debug文件夹路径",
          "example":"/DockerExternal/debug"
        }
      }
    },
    "Anonymazation":{
      "type":"object",
      "description":"匿名化设置",
      "properties":{
        "Enable":{
          "type":"boolean",
          "description":"匿名化总体是否开启",
          "example":true
        },
        "patientAddrs":{
          "type":"boolean",
          "description":"是否匿名患者地址",
          "example":false
        },
        "patientIds":{
          "type":"boolean",
          "description":"是否匿名患者身份证号",
          "example":true
        },
        "patientName":{
          "type":"boolean",
          "description":"是否匿名患者姓名",
          "example":false
        },
        "patientTelcom":{
          "type":"boolean",
          "description":"是否匿名患者电话",
          "example":true
        }
      }
    },
    "AnonymazationSetRes":{
      "type":"object",
      "description":"",
      "properties":{
        "Result":{
          "type":"string",
          "example":"更新设置成功！"
        },
        "settings":{
          "$ref":"#/definitions/Anonymazation"
        }
      }
    }
  }
}
}

}
